/* Copyright 2012 Dustin Mitchell <dmmitche [at] gmail [dot] com>
 *
 * Licensed under the GPLv3.  See included LICENSE.txt for full details.
 */

#ifndef __PIN_MUX__
#define __PIN_MUX__

#define PINMUX_MODE_MIN 0
#define PINMUX_MODE_MAX 7

enum pin_mux_mode
{
  PIN_MUX_MODE1 = 1,
  PIN_MUX_MODE2 = 2,
  PIN_MUX_MODE3 = 3,
  PIN_MUX_MODE4 = 4,
  PIN_MUX_MODE5 = 5,
  PIN_MUX_MODE6 = 6,
  PIN_MUX_MODE7 = 7
};

int pin_mux_set_mode (const char *pin, enum pin_mux_mode mode);

#endif /* __PIN_MUX__ */
